import 'dart:typed_data';

import 'package:bluetooth_protocols_plugin/library.dart';
import 'package:bluetooth_protocols_plugin/src/base/data_base.dart';

// 实时信息和错误和状态基类
abstract class RealtimeAllInfoBase<
    I extends RealtimeInfoBase,
    S extends RealtimeStatusBase,
    E extends RealtimeErrorBase> extends DataBase {
  I get info;
  S get status;
  E get error;
  //
  // 最小长度
  int get minLength;

  // 工厂函数
  RealtimeAllInfoBase.fromBytes(Uint8List bytes);
}
